﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.User
{
    public partial class check_user_account : System.Web.UI.Page
    {
        public int check = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request.QueryString["username"];
            string password = Request.QueryString["password"];
            var get_user = new TblUserController().FetchAll().Where(x=>x.UserName.ToLower()==username.ToLower()).ToList();
            if (get_user.Count != 0)
            {
                if (get_user[0].UserPass == password)
                    check = 1;
            }
        }
    }
}